home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / GregorianCalendarDate.xh < prev    next >
Text File  |  1996-05-01  |  23KB  |  662 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: GregorianCalendarDate.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_TGregorianCalendarDate_xh
  11. #define SOM_TGregorianCalendarDate_xh
  12.  
  13. class TGregorianCalendarDate;
  14.  
  15. #define TGregorianCalendarDate_MajorVersion 1
  16. #define TGregorianCalendarDate_MinorVersion 1
  17.  
  18. /* C++ SOM defs */
  19. #include <somcls.xh>
  20. #include <somcm.xh>
  21.  
  22. /* C++ parent defs */
  23. #ifndef SOM_TCalendarDate_xh
  24. #include <CalendarDate.xh>
  25. #endif
  26.  
  27. #ifndef TGregorianCalendarDate_API
  28. #define TGregorianCalendarDate_API
  29. /*
  30.  * -- The Class API
  31.  */
  32.  
  33. /*
  34.  * Start of user-defined types:
  35.  */
  36. class SOMClass;
  37. class SOMObject;
  38. #define TGregorianCalendarDate_kGregorianValidateDayMask 1 /* 0x00000001 */
  39. #define TGregorianCalendarDate_kGregorianValidateMonthMask 2 /* 0x00000002 */
  40. #define TGregorianCalendarDate_kGregorianValidateYearMask 4 /* 0x00000004 */
  41. #define TGregorianCalendarDate_kGregorianValidateSecondsMask 8 /* 0x00000008 */
  42. #define TGregorianCalendarDate_kGregorianValidateMinutesMask 16 /* 0x00000010 */
  43. #define TGregorianCalendarDate_kGregorianValidateHoursMask 32 /* 0x00000020 */
  44. #define TGregorianCalendarDate_kGregorianValidateDayOfWeekMask 64 /* 0x00000040 */
  45. #define TGregorianCalendarDate_kGregorianValidateWeekOfYearMask 128 /* 0x00000080 */
  46. #define TGregorianCalendarDate_kGregorianValidateDayOfYearMask 256 /* 0x00000100 */
  47. #define TGregorianCalendarDate_kGregorianValidateAllMask 511 /* 0x000001FF */
  48.  
  49. #ifndef SOM_DONT_USE_SHORT_NAMES
  50. #ifndef SOMTGD_kGregorianValidateDayMask
  51.     #ifdef kGregorianValidateDayMask
  52.         #undef kGregorianValidateDayMask
  53.         #define SOMTGD_kGregorianValidateDayMask 1
  54.     #else
  55.         #define kGregorianValidateDayMask TGregorianCalendarDate_kGregorianValidateDayMask
  56.     #endif /* kGregorianValidateDayMask */
  57. #endif /* SOMTGD_kGregorianValidateDayMask */
  58. #ifndef SOMTGD_kGregorianValidateMonthMask
  59.     #ifdef kGregorianValidateMonthMask
  60.         #undef kGregorianValidateMonthMask
  61.         #define SOMTGD_kGregorianValidateMonthMask 1
  62.     #else
  63.         #define kGregorianValidateMonthMask TGregorianCalendarDate_kGregorianValidateMonthMask
  64.     #endif /* kGregorianValidateMonthMask */
  65. #endif /* SOMTGD_kGregorianValidateMonthMask */
  66. #ifndef SOMTGD_kGregorianValidateYearMask
  67.     #ifdef kGregorianValidateYearMask
  68.         #undef kGregorianValidateYearMask
  69.         #define SOMTGD_kGregorianValidateYearMask 1
  70.     #else
  71.         #define kGregorianValidateYearMask TGregorianCalendarDate_kGregorianValidateYearMask
  72.     #endif /* kGregorianValidateYearMask */
  73. #endif /* SOMTGD_kGregorianValidateYearMask */
  74. #ifndef SOMTGD_kGregorianValidateSecondsMask
  75.     #ifdef kGregorianValidateSecondsMask
  76.         #undef kGregorianValidateSecondsMask
  77.         #define SOMTGD_kGregorianValidateSecondsMask 1
  78.     #else
  79.         #define kGregorianValidateSecondsMask TGregorianCalendarDate_kGregorianValidateSecondsMask
  80.     #endif /* kGregorianValidateSecondsMask */
  81. #endif /* SOMTGD_kGregorianValidateSecondsMask */
  82. #ifndef SOMTGD_kGregorianValidateMinutesMask
  83.     #ifdef kGregorianValidateMinutesMask
  84.         #undef kGregorianValidateMinutesMask
  85.         #define SOMTGD_kGregorianValidateMinutesMask 1
  86.     #else
  87.         #define kGregorianValidateMinutesMask TGregorianCalendarDate_kGregorianValidateMinutesMask
  88.     #endif /* kGregorianValidateMinutesMask */
  89. #endif /* SOMTGD_kGregorianValidateMinutesMask */
  90. #ifndef SOMTGD_kGregorianValidateHoursMask
  91.     #ifdef kGregorianValidateHoursMask
  92.         #undef kGregorianValidateHoursMask
  93.         #define SOMTGD_kGregorianValidateHoursMask 1
  94.     #else
  95.         #define kGregorianValidateHoursMask TGregorianCalendarDate_kGregorianValidateHoursMask
  96.     #endif /* kGregorianValidateHoursMask */
  97. #endif /* SOMTGD_kGregorianValidateHoursMask */
  98. #ifndef SOMTGD_kGregorianValidateDayOfWeekMask
  99.     #ifdef kGregorianValidateDayOfWeekMask
  100.         #undef kGregorianValidateDayOfWeekMask
  101.         #define SOMTGD_kGregorianValidateDayOfWeekMask 1
  102.     #else
  103.         #define kGregorianValidateDayOfWeekMask TGregorianCalendarDate_kGregorianValidateDayOfWeekMask
  104.     #endif /* kGregorianValidateDayOfWeekMask */
  105. #endif /* SOMTGD_kGregorianValidateDayOfWeekMask */
  106. #ifndef SOMTGD_kGregorianValidateWeekOfYearMask
  107.     #ifdef kGregorianValidateWeekOfYearMask
  108.         #undef kGregorianValidateWeekOfYearMask
  109.         #define SOMTGD_kGregorianValidateWeekOfYearMask 1
  110.     #else
  111.         #define kGregorianValidateWeekOfYearMask TGregorianCalendarDate_kGregorianValidateWeekOfYearMask
  112.     #endif /* kGregorianValidateWeekOfYearMask */
  113. #endif /* SOMTGD_kGregorianValidateWeekOfYearMask */
  114. #ifndef SOMTGD_kGregorianValidateDayOfYearMask
  115.     #ifdef kGregorianValidateDayOfYearMask
  116.         #undef kGregorianValidateDayOfYearMask
  117.         #define SOMTGD_kGregorianValidateDayOfYearMask 1
  118.     #else
  119.         #define kGregorianValidateDayOfYearMask TGregorianCalendarDate_kGregorianValidateDayOfYearMask
  120.     #endif /* kGregorianValidateDayOfYearMask */
  121. #endif /* SOMTGD_kGregorianValidateDayOfYearMask */
  122. #ifndef SOMTGD_kGregorianValidateAllMask
  123.     #ifdef kGregorianValidateAllMask
  124.         #undef kGregorianValidateAllMask
  125.         #define SOMTGD_kGregorianValidateAllMask 1
  126.     #else
  127.         #define kGregorianValidateAllMask TGregorianCalendarDate_kGregorianValidateAllMask
  128.     #endif /* kGregorianValidateAllMask */
  129. #endif /* SOMTGD_kGregorianValidateAllMask */
  130. #endif /* SOM_DONT_USE_SHORT_NAMES */
  131.  
  132. /*
  133.  * End of user-defined types.
  134.  */
  135.  
  136. #ifdef OLDIBMSOMAPISUPPORT
  137. #define TGregorianCalendarDateCClassData TGregorianCalendarDateClassData
  138. #define TGregorianCalendarDateNewClass(major,minor) somNewVersionedClassReference(TGregorianCalendarDate,major,minor)
  139. #endif
  140.  
  141. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  142. #define TGregorianCalendarDateMetaClass SOMClass
  143.  
  144. #if PRAGMA_ALIGN_SUPPORTED
  145. #  pragma options align=power
  146. #endif
  147.  
  148. /* The API to the TGregorianCalendarDate class object, and the methods it introduces. */
  149. SOMEXTERN struct TGregorianCalendarDateClassDataStructure {
  150. #ifdef OLDIBMSOMAPISUPPORT
  151.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  152. #else
  153.     long zero;
  154. #endif
  155.     somStaticClassInfo *sci;
  156.     somDToken        instanceDataToken;
  157.     long reserved [3];
  158.     somMToken _get_fMonth;
  159.     somMToken _set_fMonth;
  160.     somMToken _get_fDay;
  161.     somMToken _set_fDay;
  162.     somMToken _get_fYear;
  163.     somMToken _set_fYear;
  164.     somMToken _get_fHours;
  165.     somMToken _set_fHours;
  166.     somMToken _get_fMinutes;
  167.     somMToken _set_fMinutes;
  168.     somMToken _get_fSeconds;
  169.     somMToken _set_fSeconds;
  170.     somMToken _get_fDayOfWeek;
  171.     somMToken _set_fDayOfWeek;
  172.     somMToken _get_fDayOfYear;
  173.     somMToken _set_fDayOfYear;
  174.     somMToken _get_fWeekOfYear;
  175.     somMToken _set_fWeekOfYear;
  176.     somMToken GregorianDateGetMonth;
  177.     somMToken GregorianDateSetMonth;
  178.     somMToken GregorianDateGetDay;
  179.     somMToken GregorianDateSetDay;
  180.     somMToken GregorianDateGetYear;
  181.     somMToken GregorianDateSetYear;
  182.     somMToken GregorianDateGetHours;
  183.     somMToken GregorianDateSetHours;
  184.     somMToken GregorianDateGetMinutes;
  185.     somMToken GregorianDateSetMinutes;
  186.     somMToken GregorianDateGetSeconds;
  187.     somMToken GregorianDateSetSeconds;
  188.     somMToken GregorianDateGetDayOfWeek;
  189.     somMToken GregorianDateSetDayOfWeek;
  190.     somMToken GregorianDateGetDayOfYear;
  191.     somMToken GregorianDateSetDayOfYear;
  192.     somMToken GregorianDateGetWeekOfYear;
  193.     somMToken GregorianDateSetWeekOfYear;
  194. } SOMDLINK TGregorianCalendarDateClassData;
  195.  
  196. #if PRAGMA_ALIGN_SUPPORTED
  197. #  pragma options align=reset
  198. #endif
  199.  
  200. #if !defined(TGregorianCalendarDate_Class_Source) && !defined(SOM_Module_gregoriancalendardate_Source)
  201. #if PRAGMA_IMPORT_SUPPORTED
  202. #pragma import list TGregorianCalendarDateClassData
  203. #endif
  204. #endif
  205.  
  206.  
  207. /*
  208.  * -- Typedefs for TGregorianCalendarDate Method Procedures
  209.  */
  210. SOMEXTERN {
  211. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetMonth)(TGregorianCalendarDate *somSelf, Environment *ev);
  212. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetMonth)(TGregorianCalendarDate *somSelf, Environment *ev,
  213.         UInt16 month);
  214. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetDay)(TGregorianCalendarDate *somSelf, Environment *ev);
  215. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetDay)(TGregorianCalendarDate *somSelf, Environment *ev,
  216.         UInt16 day);
  217. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetYear)(TGregorianCalendarDate *somSelf, Environment *ev);
  218. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetYear)(TGregorianCalendarDate *somSelf, Environment *ev,
  219.         UInt16 year);
  220. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetHours)(TGregorianCalendarDate *somSelf, Environment *ev);
  221. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetHours)(TGregorianCalendarDate *somSelf, Environment *ev,
  222.         UInt16 hours);
  223. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetMinutes)(TGregorianCalendarDate *somSelf, Environment *ev);
  224. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetMinutes)(TGregorianCalendarDate *somSelf, Environment *ev,
  225.         UInt16 minutes);
  226. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetSeconds)(TGregorianCalendarDate *somSelf, Environment *ev);
  227. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetSeconds)(TGregorianCalendarDate *somSelf, Environment *ev,
  228.         UInt16 seconds);
  229. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetDayOfWeek)(TGregorianCalendarDate *somSelf, Environment *ev);
  230. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetDayOfWeek)(TGregorianCalendarDate *somSelf, Environment *ev,
  231.         UInt16 dayOfWeek);
  232. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetDayOfYear)(TGregorianCalendarDate *somSelf, Environment *ev);
  233. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetDayOfYear)(TGregorianCalendarDate *somSelf, Environment *ev,
  234.         UInt16 dayOfYear);
  235. typedef UInt16   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateGetWeekOfYear)(TGregorianCalendarDate *somSelf, Environment *ev);
  236. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_GregorianDateSetWeekOfYear)(TGregorianCalendarDate *somSelf, Environment *ev,
  237.         UInt16 weekOfYear);
  238.  
  239. /*
  240.  * -- Typedefs for Inherited Methods
  241.  */
  242. typedef UInt32   (* SOMLINK somTD_TGregorianCalendarDate__get_fCalendarRef)(TGregorianCalendarDate *somSelf, Environment *ev);
  243. typedef void   (* SOMLINK somTD_TGregorianCalendarDate__set_fCalendarRef)(TGregorianCalendarDate *somSelf, Environment *ev,
  244.         UInt32 fCalendarRef);
  245. typedef OptionBits   (* SOMLINK somTD_TGregorianCalendarDate_ValidateCalendarDate)(TGregorianCalendarDate *somSelf, Environment *ev,
  246.         OptionBits fieldSelector);
  247. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_somInit)(TGregorianCalendarDate *somSelf);
  248. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_somUninit)(TGregorianCalendarDate *somSelf);
  249. typedef SOMObject*   (* SOMLINK somTD_TGregorianCalendarDate_somDuplicateReference)(TGregorianCalendarDate *somSelf);
  250. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somCompareReference)(TGregorianCalendarDate *somSelf,
  251.         SOMObject* anObject);
  252. typedef SOMObject*   (* SOMLINK somTD_TGregorianCalendarDate_somRelease)(TGregorianCalendarDate *somSelf);
  253. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_somFree)(TGregorianCalendarDate *somSelf);
  254. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somCanDelete)(TGregorianCalendarDate *somSelf);
  255. typedef SOMClass*   (* SOMLINK somTD_TGregorianCalendarDate_somGetClass)(TGregorianCalendarDate *somSelf);
  256. typedef corbastring   (* SOMLINK somTD_TGregorianCalendarDate_somGetClassName)(TGregorianCalendarDate *somSelf);
  257. typedef long   (* SOMLINK somTD_TGregorianCalendarDate_somGetSize)(TGregorianCalendarDate *somSelf);
  258. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somIsA)(TGregorianCalendarDate *somSelf,
  259.         SOMClass* aClassObj);
  260. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somRespondsTo)(TGregorianCalendarDate *somSelf,
  261.         somId mId);
  262. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somIsInstanceOf)(TGregorianCalendarDate *somSelf,
  263.         SOMClass* aClassObj);
  264. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somDispatch)(TGregorianCalendarDate *somSelf,
  265.         somToken* retValue,
  266.         somId methodId,
  267.         va_list ap);
  268. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somClassDispatch)(TGregorianCalendarDate *somSelf,
  269.         SOMClass* clsObj,
  270.         somToken* retValue,
  271.         somId methodId,
  272.         va_list ap);
  273. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somCastObj)(TGregorianCalendarDate *somSelf,
  274.         SOMClass* cls);
  275. typedef boolean   (* SOMLINK somTD_TGregorianCalendarDate_somResetObj)(TGregorianCalendarDate *somSelf);
  276. typedef SOMObject*   (* SOMLINK somTD_TGregorianCalendarDate_somPrintSelf)(TGregorianCalendarDate *somSelf);
  277. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_somDumpSelf)(TGregorianCalendarDate *somSelf,
  278.         long level);
  279. typedef void   (* SOMLINK somTD_TGregorianCalendarDate_somDumpSelfInt)(TGregorianCalendarDate *somSelf,
  280.         long level);
  281. }
  282.  
  283. #endif /* TGregorianCalendarDate_API */
  284.  
  285.  
  286. /*
  287.  * -- This emitter treats Method Tokens as Thunks by default.
  288.  * -- Use the sc modifier "nothunks" to change this default
  289.  */
  290. #undef somresolve_
  291. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  292.  
  293. /*
  294.  * -- The C++ Wrapper Class for TGregorianCalendarDate
  295.  */
  296. class TGregorianCalendarDate : public TCalendarDate
  297. {
  298. public:
  299.  
  300. // TGregorianCalendarDate::new registers use of the class object, and then uses somNew
  301. // to allocate memory and load the object method table pointer. 
  302. void *operator new(size_t size)
  303. {
  304.     SOM_IgnoreWarning(size);
  305.     // Allocate memory using the default allocator for TGregorianCalendarDate, and
  306.     // clear mem & set method table pointer, call basic initialization
  307.     return (void*) somNewObject(TGregorianCalendarDate);
  308. }
  309.  
  310. // TGregorianCalendarDate::delete uses the default deallocator for the object's class.
  311. void operator delete(void * obj)
  312. {
  313.     if (obj) {
  314.         SOM_Resolve(obj,SOMObject,somFree)
  315.            ( (SOMObject*) obj );
  316.     }
  317. }
  318.  
  319. /* method: GregorianDateGetMonth */
  320. UInt16   GregorianDateGetMonth(Environment *ev)
  321. {
  322.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetMonth)
  323.     (this,ev);
  324. }
  325.  
  326. /* method: GregorianDateSetMonth */
  327. void   GregorianDateSetMonth(Environment *ev,
  328.         UInt16 month)
  329. {
  330.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetMonth)
  331.     (this,ev,month);
  332. }
  333.  
  334. /* method: GregorianDateGetDay */
  335. UInt16   GregorianDateGetDay(Environment *ev)
  336. {
  337.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetDay)
  338.     (this,ev);
  339. }
  340.  
  341. /* method: GregorianDateSetDay */
  342. void   GregorianDateSetDay(Environment *ev,
  343.         UInt16 day)
  344. {
  345.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetDay)
  346.     (this,ev,day);
  347. }
  348.  
  349. /* method: GregorianDateGetYear */
  350. UInt16   GregorianDateGetYear(Environment *ev)
  351. {
  352.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetYear)
  353.     (this,ev);
  354. }
  355.  
  356. /* method: GregorianDateSetYear */
  357. void   GregorianDateSetYear(Environment *ev,
  358.         UInt16 year)
  359. {
  360.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetYear)
  361.     (this,ev,year);
  362. }
  363.  
  364. /* method: GregorianDateGetHours */
  365. UInt16   GregorianDateGetHours(Environment *ev)
  366. {
  367.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetHours)
  368.     (this,ev);
  369. }
  370.  
  371. /* method: GregorianDateSetHours */
  372. void   GregorianDateSetHours(Environment *ev,
  373.         UInt16 hours)
  374. {
  375.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetHours)
  376.     (this,ev,hours);
  377. }
  378.  
  379. /* method: GregorianDateGetMinutes */
  380. UInt16   GregorianDateGetMinutes(Environment *ev)
  381. {
  382.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetMinutes)
  383.     (this,ev);
  384. }
  385.  
  386. /* method: GregorianDateSetMinutes */
  387. void   GregorianDateSetMinutes(Environment *ev,
  388.         UInt16 minutes)
  389. {
  390.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetMinutes)
  391.     (this,ev,minutes);
  392. }
  393.  
  394. /* method: GregorianDateGetSeconds */
  395. UInt16   GregorianDateGetSeconds(Environment *ev)
  396. {
  397.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetSeconds)
  398.     (this,ev);
  399. }
  400.  
  401. /* method: GregorianDateSetSeconds */
  402. void   GregorianDateSetSeconds(Environment *ev,
  403.         UInt16 seconds)
  404. {
  405.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetSeconds)
  406.     (this,ev,seconds);
  407. }
  408.  
  409. /* method: GregorianDateGetDayOfWeek */
  410. UInt16   GregorianDateGetDayOfWeek(Environment *ev)
  411. {
  412.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetDayOfWeek)
  413.     (this,ev);
  414. }
  415.  
  416. /* method: GregorianDateSetDayOfWeek */
  417. void   GregorianDateSetDayOfWeek(Environment *ev,
  418.         UInt16 dayOfWeek)
  419. {
  420.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetDayOfWeek)
  421.     (this,ev,dayOfWeek);
  422. }
  423.  
  424. /* method: GregorianDateGetDayOfYear */
  425. UInt16   GregorianDateGetDayOfYear(Environment *ev)
  426. {
  427.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetDayOfYear)
  428.     (this,ev);
  429. }
  430.  
  431. /* method: GregorianDateSetDayOfYear */
  432. void   GregorianDateSetDayOfYear(Environment *ev,
  433.         UInt16 dayOfYear)
  434. {
  435.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetDayOfYear)
  436.     (this,ev,dayOfYear);
  437. }
  438.  
  439. /* method: GregorianDateGetWeekOfYear */
  440. UInt16   GregorianDateGetWeekOfYear(Environment *ev)
  441. {
  442.    return SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateGetWeekOfYear)
  443.     (this,ev);
  444. }
  445.  
  446. /* method: GregorianDateSetWeekOfYear */
  447. void   GregorianDateSetWeekOfYear(Environment *ev,
  448.         UInt16 weekOfYear)
  449. {
  450.    SOM_ResolveD(this,TGregorianCalendarDate,TGregorianCalendarDate,GregorianDateSetWeekOfYear)
  451.     (this,ev,weekOfYear);
  452. }
  453.  
  454.  
  455. /*
  456.  * -- Inherited methods
  457.  */
  458. /* method: _get_fCalendarRef */
  459. UInt32   _get_fCalendarRef(Environment *ev)
  460. {
  461.    return SOM_ResolveD(this,TGregorianCalendarDate,TCalendarDate,_get_fCalendarRef)
  462.     (this,ev);
  463. }
  464.  
  465. /* method: _set_fCalendarRef */
  466. void   _set_fCalendarRef(Environment *ev,
  467.         UInt32 fCalendarRef)
  468. {
  469.    SOM_ResolveD(this,TGregorianCalendarDate,TCalendarDate,_set_fCalendarRef)
  470.     (this,ev,fCalendarRef);
  471. }
  472.  
  473. /* method: ValidateCalendarDate */
  474. OptionBits   ValidateCalendarDate(Environment *ev,
  475.         OptionBits fieldSelector)
  476. {
  477.    return SOM_ResolveD(this,TGregorianCalendarDate,TCalendarDate,ValidateCalendarDate)
  478.     (this,ev,fieldSelector);
  479. }
  480.  
  481. /* method: somInit */
  482. void   somInit()
  483. {
  484.    SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somInit)
  485.     (this);
  486. }
  487.  
  488. /* method: somUninit */
  489. void   somUninit()
  490. {
  491.    SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somUninit)
  492.     (this);
  493. }
  494.  
  495. /* method: somDuplicateReference */
  496. SOMObject*   somDuplicateReference()
  497. {
  498.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somDuplicateReference)
  499.     (this);
  500. }
  501.  
  502. /* method: somCompareReference */
  503. boolean   somCompareReference(SOMObject* anObject)
  504. {
  505.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somCompareReference)
  506.     (this,anObject);
  507. }
  508.  
  509. /* method: somRelease */
  510. SOMObject*   somRelease()
  511. {
  512.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somRelease)
  513.     (this);
  514. }
  515.  
  516. /* method: somFree */
  517. void   somFree()
  518. {
  519.    SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somFree)
  520.     (this);
  521. }
  522.  
  523. /* method: somCanDelete */
  524. boolean   somCanDelete()
  525. {
  526.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somCanDelete)
  527.     (this);
  528. }
  529.  
  530. /* method: somGetClass */
  531. SOMClass*   somGetClass()
  532. {
  533.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somGetClass)
  534.     (this);
  535. }
  536.  
  537. /* method: somGetClassName */
  538. corbastring   somGetClassName()
  539. {
  540.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somGetClassName)
  541.     (this);
  542. }
  543.  
  544. /* method: somGetSize */
  545. long   somGetSize()
  546. {
  547.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somGetSize)
  548.     (this);
  549. }
  550.  
  551. /* method: somIsA */
  552. boolean   somIsA(SOMClass* aClassObj)
  553. {
  554.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somIsA)
  555.     (this,aClassObj);
  556. }
  557.  
  558. /* method: somRespondsTo */
  559. boolean   somRespondsTo(somId mId)
  560. {
  561.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somRespondsTo)
  562.     (this,mId);
  563. }
  564.  
  565. /* method: somIsInstanceOf */
  566. boolean   somIsInstanceOf(SOMClass* aClassObj)
  567. {
  568.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somIsInstanceOf)
  569.     (this,aClassObj);
  570. }
  571.  
  572. /* va_list method: somDispatch */
  573. /* the va_list invocation form */
  574. boolean   TGregorianCalendarDate_somDispatch(somToken* retValue,
  575.         somId methodId,
  576.         va_list ap)
  577. {
  578.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somDispatch)
  579.     (this,retValue,methodId,ap);
  580. }
  581.  
  582. /* the varargs invocation form */
  583. boolean   somDispatch(somToken* retValue,
  584.         somId methodId,
  585.         ...)
  586. {
  587.    va_list ap;
  588.    va_start(ap, methodId);
  589.       boolean __somResult = 
  590.       (boolean) SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somDispatch)
  591.     (this,retValue,methodId,ap);
  592.    va_end(ap);
  593.    return __somResult;
  594. }
  595.  
  596. /* va_list method: somClassDispatch */
  597. /* the va_list invocation form */
  598. boolean   TGregorianCalendarDate_somClassDispatch(SOMClass* clsObj,
  599.         somToken* retValue,
  600.         somId methodId,
  601.         va_list ap)
  602. {
  603.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somClassDispatch)
  604.     (this,clsObj,retValue,methodId,ap);
  605. }
  606.  
  607. /* the varargs invocation form */
  608. boolean   somClassDispatch(SOMClass* clsObj,
  609.         somToken* retValue,
  610.         somId methodId,
  611.         ...)
  612. {
  613.    va_list ap;
  614.    va_start(ap, methodId);
  615.       boolean __somResult = 
  616.       (boolean) SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somClassDispatch)
  617.     (this,clsObj,retValue,methodId,ap);
  618.    va_end(ap);
  619.    return __somResult;
  620. }
  621.  
  622. /* method: somCastObj */
  623. boolean   somCastObj(SOMClass* cls)
  624. {
  625.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somCastObj)
  626.     (this,cls);
  627. }
  628.  
  629. /* method: somResetObj */
  630. boolean   somResetObj()
  631. {
  632.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somResetObj)
  633.     (this);
  634. }
  635.  
  636. /* method: somPrintSelf */
  637. SOMObject*   somPrintSelf()
  638. {
  639.    return SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somPrintSelf)
  640.     (this);
  641. }
  642.  
  643. /* method: somDumpSelf */
  644. void   somDumpSelf(long level)
  645. {
  646.    SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somDumpSelf)
  647.     (this,level);
  648. }
  649.  
  650. /* method: somDumpSelfInt */
  651. void   somDumpSelfInt(long level)
  652. {
  653.    SOM_ResolveD(this,TGregorianCalendarDate,SOMObject,somDumpSelfInt)
  654.     (this,level);
  655. }
  656.  
  657. };   /* TGregorianCalendarDate */
  658.  
  659.  
  660.  
  661. #endif       /* SOM_TGregorianCalendarDate_xh */
  662.